import axios from '../assets/js/http'
import url from './url'

axios.defaults.withCredentials = true

export default {
  // 登录
  login (params) {
    return axios.post(url.login, params)
  },
  getCheckCode () {
    return axios.get(url.checkCode)
  },
  getverifyCode (params) {
    return axios.post(url.verifyCode, params)
  },
  logout () {
    return axios.get(url.logout)
  },
  getLoginLogLast () {
    return axios.get(url.loginLogLast)
  }
}
